package Project;
//___________________________IMPORTACIONES______________________________________

import javax.swing.*;
import org.jvnet.substance.SubstanceLookAndFeel;
import org.jvnet.substance.button.ClassicButtonShaper;
//_____________________________CONSTRUCTOR______________________________________

public class Main {

    public static void main(String[] args) {
        try {
            
            JDialog.setDefaultLookAndFeelDecorated(true);
            JFrame.setDefaultLookAndFeelDecorated(true); //que nos permite dejar a Substance la decoracion ( por asi decirlo)
            UIManager.put(SubstanceLookAndFeel.NO_EXTRA_ELEMENTS, Boolean.TRUE);
            SubstanceLookAndFeel.setSkin("org.jvnet.substance.skin.CremeSkin"); // Setencia que aplica el skin Creme de Substance
            SubstanceLookAndFeel.setSkin("org.jvnet.substance.skin.ModerateSkin");
            SubstanceLookAndFeel.setCurrentTheme("org.jvnet.substance.theme.SubstanceBottleGreenTheme");
          
            Container container = new Container();
            UIManager.put(SubstanceLookAndFeel.BUTTON_NO_MIN_SIZE_PROPERTY, Boolean.TRUE);
            SubstanceLookAndFeel.setCurrentButtonShaper(new ClassicButtonShaper());
            container.setVisible(true);
        } catch (Exception e) {
            JOptionPane.showMessageDialog(null, "La aplicacion no se pudo iniciar", "Error", JOptionPane.ERROR_MESSAGE);
            System.exit(0);
        }

    }
}
//______________________________________________________________________________